package com.ruoyi.period.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 客户对象 client
 * 
 * @author ruoyi
 * @date 2021-11-05
 */
public class Client extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 客户名称 */
    @Excel(name = "客户名称")
    private String name;

    /** 性别.字典值id */
    @Excel(name = "性别.字典值id")
    private String gender;

    /** 年龄 */
    @Excel(name = "年龄")
    private Long age;

    /** 手机号 */
    @Excel(name = "手机号")
    private Long phone;

    /** 邮箱 */
    @Excel(name = "邮箱")
    private String email;

    /** 客户类型 */
    @Excel(name = "客户类型")
    private String type;

    /** 客户等级 */
    @Excel(name = "客户等级")
    private String grade;

    /** 客户经理 */
    @Excel(name = "客户经理")
    private String employeesId;

    /** 客户来源 */
    @Excel(name = "客户来源")
    private String source;

    /** 身份证号 */
    @Excel(name = "身份证号")
    private String idCard;

    /** 客户绑定截至日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "客户绑定截至日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date bindingDate;

    /** 最近跟进时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最近跟进时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date followDate;

    /** 合伙人 */
    @Excel(name = "合伙人")
    private String partnerId;

    /** 积分 */
    @Excel(name = "积分")
    private Long integral;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setGender(String gender) 
    {
        this.gender = gender;
    }

    public String getGender() 
    {
        return gender;
    }
    public void setAge(Long age) 
    {
        this.age = age;
    }

    public Long getAge() 
    {
        return age;
    }
    public void setPhone(Long phone) 
    {
        this.phone = phone;
    }

    public Long getPhone() 
    {
        return phone;
    }
    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setGrade(String grade) 
    {
        this.grade = grade;
    }

    public String getGrade() 
    {
        return grade;
    }
    public void setEmployeesId(String employeesId) 
    {
        this.employeesId = employeesId;
    }

    public String getEmployeesId() 
    {
        return employeesId;
    }
    public void setSource(String source) 
    {
        this.source = source;
    }

    public String getSource() 
    {
        return source;
    }
    public void setIdCard(String idCard) 
    {
        this.idCard = idCard;
    }

    public String getIdCard() 
    {
        return idCard;
    }
    public void setBindingDate(Date bindingDate) 
    {
        this.bindingDate = bindingDate;
    }

    public Date getBindingDate() 
    {
        return bindingDate;
    }
    public void setFollowDate(Date followDate) 
    {
        this.followDate = followDate;
    }

    public Date getFollowDate() 
    {
        return followDate;
    }
    public void setPartnerId(String partnerId) 
    {
        this.partnerId = partnerId;
    }

    public String getPartnerId() 
    {
        return partnerId;
    }
    public void setIntegral(Long integral) 
    {
        this.integral = integral;
    }

    public Long getIntegral() 
    {
        return integral;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("gender", getGender())
            .append("age", getAge())
            .append("phone", getPhone())
            .append("email", getEmail())
            .append("type", getType())
            .append("grade", getGrade())
            .append("employeesId", getEmployeesId())
            .append("source", getSource())
            .append("idCard", getIdCard())
            .append("bindingDate", getBindingDate())
            .append("followDate", getFollowDate())
            .append("partnerId", getPartnerId())
            .append("integral", getIntegral())
            .toString();
    }
}
